# Author:haijing

# 用户输入
user_data = "haijing"
password_data = "159501"
vip_data = "vincci"
password_data_vip = "003003"
count = 3 #循环次数
while True:
    count -= 1
    username = input("请输入您的账号：")
    password = input("请输入您的密码：")
    # 当是普通用户时
    if username in user_data:
        if password in password_data:

            count = 5

            while True:
                if count == -1:
                    print("登录成功，欢迎", username, "使用，今天还剩", count, "次使用机会")
            else:
                count == 0;
                print(次数已用完)




            import datetime #利用import模块导入函数datetime

            time = datetime.datetime.today().weekday()
            week_time = int(time) #整数

            if week_time == 0:
               print("wow!")
            elif week_time == 1:
               print("HAVE A GOOD TIME")
            elif week_time == 2:
               print("08:00-09:45 网球 西区网球场")
               print("10:45-12:00 大学英语 10-305")
               print("14:30-15:55 h5互动技术 3实308")
               print("18:45-20:10 摄影赏析 2-106")
               print("20:15-21:45 非遗赏析 4-206")
            elif week_time == 3:
               print("10:35-12:00 毛概理论 7-402");
               print("18:45-20:55 毛概实践 7-402");
            elif week_time == 4:
               print("09:45-12:00 Python 新综612")
               print("14:30-15:55 广告文案 1-303")
               print("16:10-17:10 大学英语 10-305")
            elif week_time == 5:
               print("08:00-09:30 AI 新综612")
               print("09:45-12:00 创业实践 1-402")
            else:
               print("WEEKEND!");
               print("HAVE A GOOD TIME!")

            print("时间段课程：1：早上 2：下午 3：晚上 4：记起来啦不需要查了")
            choice = int(input("请输入你的选择: "))

            if choice == 1:
                if d == 1:
                    print(present) #当print括号里加了双引号便是出现里面的文字，没有双引号时便是出现开头代指的时间
                    print("HAVE A GOOD TIME!")
                elif d == 2:
                    print(present)
                    print("1-2节 网球")
                    print("4-5节 大学英语")
                elif d == 3:
                    print(present)
                    print("4-5节 毛概实践")
                elif d == 4:
                    print(present)
                    print("3-5节 Python")
                elif d == 5:
                    print(present)
                    print("1-2节 AI课")
                    print("3-5节 创业实践")
                else:
                    print(present)
                    print("HAVE A GOOD TIME!")

            elif  choice == 2:
                if d == 1:
                    print(present)
                    print("HAVE A GOOD TIME!")
                elif d == 2:
                    print(present)
                    print("8-9节 H5互动技术")
                elif d == 3:
                    print(present)
                    print("HAVE A GOOD TIME!")
                elif d == 4:
                    print(present)
                    print("8-9节 广告文案")
                    print("10-11节 大学英语")
                else:
                    print(present)
                    print("HAVE A GOOD TIME!")
            elif choice == 3:
                if d == 2:
                    print(present)
                    print("12-13节 摄影赏析")
                    print("14-15节 非遗赏析")
                elif d == 3:
                    print(present)
                    print("12-13节 毛概理论")
                else:
                    print(present)
                    print("HAVE A GOOD TIME!")
            elif choice == 4:
                print("SEE YOU AGAIN!")
                break
            else:
                print("请按要求输入哟")
                break

    if username in vip_data:
        if password in password_data_vip:

            count = 10

            while True:
                if count == -1:
                    print("登录成功，欢迎", username, "使用，今天还剩", count, "次使用机会")
            else:
                count == 0;
                print("次数已用完")




            import datetime #利用import模块导入函数datetime

            time = datetime.datetime.today().weekday()
            week_time = int(time) #整数

            if week_time == 0:
               print("wow!")
            elif week_time == 1:
               print("HAVE A GOOD TIME")
            elif week_time == 2:
               print("08:00-09:45 网球 西区网球场")
               print("10:45-12:00 大学英语 10-305")
               print("14:30-15:55 h5互动技术 3实308")
               print("18:45-20:10 摄影赏析 2-106")
               print("20:15-21:45 非遗赏析 4-206")
            elif week_time == 3:
               print("10:35-12:00 毛概理论 7-402");
               print("18:45-20:55 毛概实践 7-402");
            elif week_time == 4:
               print("09:45-12:00 Python 新综612")
               print("14:30-15:55 广告文案 1-303")
               print("16:10-17:10 大学英语 10-305")
            elif week_time == 5:
               print("08:00-09:30 AI 新综612")
               print("09:45-12:00 创业实践 1-402")
            else:
               print("WEEKEND!");
               print("HAVE A GOOD TIME!")

            print("时间段课程：1：早上 2：下午 3：晚上 4：记起来啦不需要查了")
            choice = int(input("请输入你的选择: "))

            if choice == 1:
                if d == 1:
                    print(present) #当print括号里加了双引号便是出现里面的文字，没有双引号时便是出现开头代指的时间
                    print("HAVE A GOOD TIME!")
                elif d == 2:
                    print(present)
                    print("1-2节 网球")
                    print("4-5节 大学英语")
                elif d == 3:
                    print(present)
                    print("4-5节 毛概实践")
                elif d == 4:
                    print(present)
                    print("3-5节 Python")
                elif d == 5:
                    print(present)
                    print("1-2节 AI课")
                    print("3-5节 创业实践")
                else:
                    print(present)
                    print("HAVE A GOOD TIME!")

            elif  choice == 2:
                if d == 1:
                    print(present)
                    print("HAVE A GOOD TIME!")
                elif d == 2:
                    print(present)
                    print("8-9节 H5互动技术")
                elif d == 3:
                    print(present)
                    print("HAVE A GOOD TIME!")
                elif d == 4:
                    print(present)
                    print("8-9节 广告文案")
                    print("10-11节 大学英语")
                else:
                    print(present)
                    print("HAVE A GOOD TIME!")
            elif choice == 3:
                if d == 2:
                    print(present)
                    print("12-13节 摄影赏析")
                    print("14-15节 非遗赏析")
                elif d == 3:
                    print(present)
                    print("12-13节 毛概理论")
                else:
                    print(present)
                    print("HAVE A GOOD TIME!")
            elif choice == 4:
                print("SEE YOU AGAIN!")
                break
            else:
                print("请按要求输入哟")
                break
    else:
        if count == 0:
            print("再想想吧明天才能看")
            break
        else:
            print(密码不对再输一次)






